package com.cmes.core.utils;

import org.springframework.cglib.beans.BeanCopier;

/**
 * 对象操作工具类
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
public class BeanUtils {

    public static <T, E> T copyProperties(E source, T target) {
        BeanCopier copier = BeanCopier.create(source.getClass(), target.getClass(),false);
        copier.copy(source, target, null);
        return target;
    }

}
